import axios from '@/libs/api.request'
import qs from 'qs'

export const getHealth = (params) => {
  return axios.request({
    url: 'admins/statistics/getHealth?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getIO = (params) => {
  return axios.request({
    url: 'admins/statistics/getIO?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getSubSystem = (params) => {
  return axios.request({
    url: 'admins/statistics/getSubSystem?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getWano = (params) => {
  return axios.request({
    url: 'admins/statistics/getWano?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getFailureMode = (params) => {
  return axios.request({
    url: 'admins/statistics/getFailureMode?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getEventRecord = (params) => {
  return axios.request({
    url: 'admins/eventRecord/getAll?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getWanoByStartYearAndEndYear = (params) => {
  return axios.request({
    url: 'admins/statistics/getWanoByStartYearAndEndYear?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const getAllByAircrewNumberStartYearAndEndYear = (params) => {
  return axios.request({
    url: 'admins/eventRecord/getAllByAircrewNumberStartYearAndEndYear?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const equipment = (params) => {
  return axios.request({
    url: 'admins/equipment/getAll?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const getWaitingProcessList = (params) => {
  return axios.request({
    url: 'admins/statistics/getWaitingProcessList?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const getListByAdminId = (params) => {
  return axios.request({
    url: 'admins/defectFollower/getListByAdminId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const maintainPlanGetAll = (params) => {
  return axios.request({
    url: 'admins/maintainPlan/getAll?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
